package com.example.sunmiv1.entity;

import java.io.Serializable;
import java.util.List;

public class EditSet implements Serializable {

    /**
     * {"status":1,"msg":"\u83b7\u53d6\u6210\u529f","data":{"supplier_type":"1","integral_arrive_cash":"1",
     * "marketing_methods":"2","show_purchase_price":"1","edit_price":"1","goods_integral_state":1}}
     **/

    private int status;
    private String msg;
    private dataBean data;

    public int getStatus() {
        return status;
    }

    public String getMsg() {
        return msg == null ? "" : msg;
    }

    public dataBean getData() {
        return data;
    }

    public static class dataBean implements Serializable {
        private String supplier_type;
        private String integral_arrive_cash;
        private String marketing_methods;
        private String show_purchase_price;
        private String edit_price;
        private int goods_integral_state;

        public int getGoods_integral_state() {
            return goods_integral_state;
        }

        public String getEdit_price() {
            return edit_price == null ? "" : edit_price;
        }

        public String getIntegral_arrive_cash() {
            if (integral_arrive_cash != null && !integral_arrive_cash.isEmpty() && integral_arrive_cash.contains(".")) {
                integral_arrive_cash = integral_arrive_cash.substring(0, integral_arrive_cash.indexOf("."));
                return integral_arrive_cash;
            }
            return integral_arrive_cash == null ? "" : integral_arrive_cash;
        }

        public String getMarketing_methods() {
            return marketing_methods == null ? "" : marketing_methods;
        }

        public String getShow_purchase_price() {
            return show_purchase_price == null ? "" : show_purchase_price;
        }

        public String getSupplier_type() {
            return supplier_type == null ? "" : supplier_type;
        }
    }
}
